package icom.acm.bean;
/**
 * @author shench
 * 用户关系类
 */
import icom.acm.util.DBConnect;

import java.util.Date;

public class T_USERRELATION {
	private Integer UR_ID;		// 关系编号
	private Integer UR_U_ID;	// 关注用户id
	private Integer UR_UED_ID;	// 被关注用户id
	private Date UR_DATE;		// 关系连接时间
	
	public T_USERRELATION(){}
	
	public T_USERRELATION(DBConnect db) throws Exception{
		if (db!=null){
			UR_ID = db.getInt("UR_ID");
			UR_U_ID = db.getInt("UR_U_ID");
			UR_UED_ID = db.getInt("UR_UED_ID");
			UR_DATE = new Date(db.getTimestamp("UR_DATE").getTime());
		}
	}
	
	public Integer getUR_ID() {
		return UR_ID;
	}
	public void setUR_ID(Integer ur_id) {
		UR_ID = ur_id;
	}
	public Integer getUR_U_ID() {
		return UR_U_ID;
	}
	public void setUR_U_ID(Integer ur_u_id) {
		UR_U_ID = ur_u_id;
	}
	public Integer getUR_UED_ID() {
		return UR_UED_ID;
	}
	public void setUR_UED_ID(Integer ur_ued_id) {
		UR_UED_ID = ur_ued_id;
	}
	public Date getUR_DATE() {
		return UR_DATE;
	}
	public void setUR_DATE(Date ur_date) {
		UR_DATE = ur_date;
	}
	
	
}
